package com.infusionesuci2Pro;

import com.infusionesuci2Pro.R;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;

public class MainActivity extends Activity {
	
	/**
	 * metodo que ejecuta el hilo para 
	 * el splash de la primera interfaz.
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	    Handler HANDLER = new Handler();
	    HANDLER.postDelayed(new Runnable(){
	           public void run() {
	                finish();
	                startActivity (new Intent(getApplicationContext(), ListaMedicamentos.class));
	                overridePendingTransition(R.anim.push_up_in, R.anim.push_up_out);
	           }
	    }, 2000);
	}
}
